<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

class CoreLanguage {
	
	//constructor
	function CoreLanguage() {
		
	}
	
	//methods
	function get($key, $module = '') {
		if( empty($key) ) {
			return '';
		}
		global $LANGUAGE;
		if( $module == '' ) {
			return (isset($LANGUAGE[$module][$key]) ? $LANGUAGE[$module][$key] : $key);
		} else {
			return (isset($LANGUAGE[$key]) ? $LANGUAGE[$key] : $key);
		}
	}
	
	function load($files = '') {
		
	}
}
//
?>